﻿// <copyright file="TransactionResultDto.cs" company="DatamineConsulting">
//      Copyright (c) DatamineConsulting.  All rights reserved.
// </copyright>
// <author>Sites, Ryan</author> 
namespace Kanz4Kidz.DataTransfer
{
    using System.Collections.Generic;

    using Kanz4Kidz.DataTransfer.Interface;

    /// <summary>
    /// The implementation of a transaction result data transfer object.
    /// </summary>
    public abstract class TransactionResultDto : ITransactionResult
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="TransactionResultDto"/> class.
        /// </summary>
        protected TransactionResultDto()
        {
            ErrorMessages = new List<string>();
        }

        #region Implementation of ITransactionResult

        /// <summary>
        /// Gets or sets a value indicating whether [transaction was successful].
        /// </summary>
        /// <value>
        /// 	<c>true</c> if [transaction was successful]; otherwise, <c>false</c>.
        /// </value>
        public bool TransactionWasSuccessful { get; set; }

        /// <summary>
        /// Gets or sets the error messages.
        /// </summary>
        /// <value>
        /// The error messages.
        /// </value>
        public IList<string> ErrorMessages { get; set; }

        #endregion
    }
}
